package pers.gxm.learning.winter;

import pers.gxm.learning.winter.config.WinterConfig;
import pers.gxm.learning.winter.core.context.impl.AnnotationConfigApplicationContext;
import pers.gxm.learning.winter.dao.UserDAO;
import pers.gxm.learning.winter.service.UserService;

public class TestWinter {
    public static void main(String[] args) {
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("pers.gxm.learning.winter");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(WinterConfig.class);
//        UserDAO bean = context.getBean(UserDAO.class);
//        System.out.println(bean);
        UserService bean = context.getBean(UserService.class);
        bean.show();

    }
}
